/**
 * 详情对话框
 */
var UnitInfoDlg = {
    data: {
        unitName: ""
    }
};

layui.use(['form', 'admin', 'ax'], function () {
    var $ = layui.jquery;
    var $ax = layui.ax;
    var form = layui.form;
    var admin = layui.admin;

    //让当前iframe弹层高度适应
    admin.iframeAuto();
    var units = $("#unit").val();
    console.log(units);
    //表单提交事件
    // form.on('submit(btnSubmit)', function (data) {
    //
    //
    //
    //     return false;
    // });

    //返回按钮
    $("#backupPage").click(function () {
        admin.putTempData("ok", units);
        admin.closeThisDialog();
    });

});